package main.a_SimpleFactoryModel;

import java.util.Scanner;

/**
 * Created by newtranx_011 on 2017/9/21.
 */
public class Test {
    public static void main(String[] args) {
//        System.out.println("ReadTest, Please Enter Data:");
//        InputStreamReader is = new InputStreamReader(System.in); //new构造InputStreamReader对象
//        BufferedReader br = new BufferedReader(is); //拿构造的方法传到BufferedReader中
//        try{ //该方法中有个IOExcepiton需要捕获
//            String name = br.readLine();
//            System.out.println("ReadTest Output:" + name);
//        }
//        catch(IOException e){
//            e.printStackTrace();
//        }

//        InputStreamReader isr = new InputStreamReader(System.in);
//        BufferedReader br = new BufferedReader(isr);
//        String name = null;
//        try {
//            name = br.readLine();
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//        System.out.println(name);
        String str = "0123456789";
        String str2 = "";
        int count = 10000;
        long start = System.currentTimeMillis();
        for (int i = 0; i < count; i++) {
            str2 += str;
        }
        long end = System.currentTimeMillis();
        long time = (end - start);
        System.out.println(time);

        Scanner sc = new Scanner(System.in);
        sc.next();
    }
}
